﻿<%@ Page Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true" CodeFile="CTHoa.aspx.cs" Inherits="CTHoa" Title="Chi Tiết Hoa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 99%;
        }
        .style3
        {
            width: 80px;
        }
    .style5
    {
        height: 121px;
    }
    .style6
    {
        width: 333px;
        height: 36px;
    }
    .style7
    {
        height: 36px;
    }
    .style8
    {
        width: 333px;
        height: 21px;
    }
    .style9
    {
        height: 21px;
    }
    .style10
    {
        height: 46px;
    }
    .style11
    {
        width: 220px;
    }
    .style12
    {
        width: 220px;
        height: 29px;
    }
    .style13
    {
        width: 220px;
        height: 10px;
    }
    .style14
    {
        width: 220px;
        height: 235px;
    }
        .style15
        {
            width: 333px;
        }
        .style16
        {
            width: 333px;
            height: 23px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p align="center">
        <asp:FormView ID="FormCTHoa" runat="server" Width="508px" 
            onitemcommand="FormCTHoa_ItemCommand" ForeColor="DimGray">
            <ItemTemplate>
                <table class="style1" style="color: #000000">
                    <tr>
                        <td rowspan="5">
                            <asp:ImageButton ID="ImageButton1" runat="server" Height="278px" 
                                ImageUrl='<%# Eval("HinhAnh") %>' Width="247px" BorderColor="#006600" 
                                BorderStyle="Solid" BorderWidth="1px" />
                            <br />
                            <br />
                            <asp:Label ID="lablma" runat="server" 
                                Text='<%# Eval("Mahoa") %>'></asp:Label>
                            &nbsp;-
                            <asp:Label ID="lblgiahoa" runat="server" ForeColor="Red" 
                                Text='<%# Eval("Giahoa") %>'></asp:Label>
                            VNĐ</td>
                        <td align="left" class="style15">
                            Tên Hoa:</td>
                        <td align="left">
                            <asp:Label ID="lbltenhoa" runat="server" Text='<%# Eval("Tenhoa") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="style8">
                            Nguồn Gốc:</td>
                        <td align="left" class="style9">
                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("NguonGoc") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="style6">
                            Ý Nghĩa:</td>
                        <td align="left" class="style7">
                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("YNghia") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="style16">
                            </td>
                        <td align="left" class="style5" valign="top">
                            <asp:LinkButton ID="LinkButton5" runat="server" ForeColor="#FF5050" 
                                CommandArgument='<%# Eval("Mahoa") %>' CommandName="mua">Chọn Mua</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="style16">
                            &nbsp;</td>
                        <td align="left" class="style5">
                            &nbsp;</td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:FormView>
    </p>
<table class="style1">
    <tr>
        <td align="left" class="style10" 
            style="color: #990033; font-size: 20px; font-weight: bold;">
                <img alt="" src="Image/menu_trai_tren.gif" 
                    style="width: 536px; height: 6px; margin-bottom: 0px;" /><br />
            Sản phẩm cùng loại<br />
                <img align="left" alt="" src="Image/menu_trai_duoi.gif" 
                    style="width: 533px; height: 2px" /></td>
    </tr>
    <tr>
        <td>
            <asp:DataList ID="DTLHoaCungLoai" runat="server" 
                onitemcommand="DTLHoaCungLoai_ItemCommand" RepeatColumns="2" 
                style="margin-right: 0px" Width="511px">
                <ItemTemplate>
                    <table class="style1" 
                        style="background-image: url('Image/Nentrong.jpg'); background-repeat: no-repeat; height: 330px;">
                        <tr>
                            <td align="left" class="style12">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Label ID="lbltenhoa" runat="server" ForeColor="#990033" 
                                    Text='<%# Eval("TenLoai") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style14">
                                <asp:ImageButton ID="ImageButton1" runat="server" Height="224px" 
                                    ImageUrl='<%# Eval("HinhAnh") %>' style="margin-top: 0px" Width="215px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style13">
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Label ID="Label1" runat="server" 
                                    Text='<%# Eval("Mahoa") %>'></asp:Label>
                                &nbsp;-
                                <asp:Label ID="lblgiahoa" runat="server" ForeColor="Red" 
                                    Text='<%# Eval("Giahoa") %>'></asp:Label>
                                VNĐ</td>
                        </tr>
                        <tr>
                            <td class="style11">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton6" runat="server" 
                                    CommandArgument='<%# Eval("Mahoa") %>' CommandName="chon" EnableTheming="True" 
                                    Font-Size="12pt" ForeColor="#990033" Height="20px" Width="72px">Chi Tiết</asp:LinkButton>
                                <asp:LinkButton ID="LinkButton5" runat="server" EnableTheming="True" 
                                    Font-Size="12pt" ForeColor="#990033" Height="20px" Width="72px" 
                                    CommandArgument='<%# Eval("Mahoa") %>' CommandName="mua">Mua hoa</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </td>
    </tr>
</table>
<p align="center">
        &nbsp;</p>
</asp:Content>

